.class public Lcom/instagram/creation/video/f/a;
.super Lcom/instagram/e/b/b;
.source "CamcorderFragment.java"

# interfaces
.implements Lcom/instagram/creation/video/a/b;
.implements Lcom/instagram/creation/video/a/f;
.implements Lcom/instagram/creation/video/c;
.implements Lcom/instagram/creation/video/mediarecorder/g;
.implements Lcom/instagram/creation/video/mediarecorder/h;
.implements Lcom/instagram/creation/video/ui/j;


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0xe
.end annotation


# instance fields
.field private Z:I

.field protected a:Landroid/media/CamcorderProfile;

.field private aA:I

.field private volatile aB:Z

.field private aC:Lcom/instagram/creation/video/ui/PreviewSurfaceView;

.field private aD:Lcom/instagram/creation/video/f/w;

.field private aE:Lcom/instagram/creation/video/a;

.field private aF:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/instagram/creation/video/a/d;",
            ">;"
        }
    .end annotation
.end field

.field private aG:Lcom/instagram/creation/video/a/e;

.field private aH:Z

.field private aI:Z

.field private aJ:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/hardware/Camera$Area;",
            ">;"
        }
    .end annotation
.end field

.field private aK:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/hardware/Camera$Area;",
            ">;"
        }
    .end annotation
.end field

.field private aL:Lcom/instagram/camera/ui/RotateLayout;

.field private aM:Z

.field private aN:Z

.field private aO:Z

.field private aP:I

.field private aQ:Landroid/os/Handler;

.field private aa:Lcom/instagram/creation/video/ui/CamcorderPreviewLayout;

.field private ab:Lcom/instagram/creation/video/ui/i;

.field private ac:Lcom/instagram/creation/video/gl/GLRootView;

.field private ad:Landroid/view/View;

.field private ae:Lcom/instagram/creation/video/ui/VideoCancelButton;

.field private af:Lcom/instagram/creation/video/ui/VideoHighlightButton;

.field private ag:Lcom/instagram/creation/video/ui/VideoAcceptButton;

.field private ah:Lcom/instagram/creation/video/ui/ClipStackView;

.field private ai:Lcom/instagram/creation/video/ui/CamcorderBlinker;

.field private aj:Lcom/instagram/creation/video/ui/VideoHighlightButton;

.field private ak:Landroid/widget/Button;

.field private al:Landroid/widget/ViewSwitcher;

.field private am:Lcom/instagram/creation/video/ui/VideoShutterButton;

.field private an:Lcom/instagram/creation/video/ui/VideoHighlightButton;

.field private ao:Lcom/instagram/ui/a/d;

.field private ap:Lcom/instagram/creation/video/ui/w;

.field private aq:Z

.field private ar:Z

.field private as:J

.field private at:Z

.field private final au:Lcom/instagram/camera/c;

.field private av:Lcom/instagram/pendingmedia/model/c;

.field private aw:Landroid/content/SharedPreferences;

.field private ax:I

.field private ay:Ljava/lang/String;

.field private az:Lcom/instagram/creation/video/g/a;

.field protected b:Lcom/instagram/creation/video/a/a;

.field private c:Landroid/hardware/Camera;

.field private d:Landroid/hardware/Camera$Parameters;

.field private e:Lcom/instagram/creation/video/mediarecorder/f;

.field private f:Landroid/graphics/Matrix;

.field private g:I

.field private h:I

.field private i:I


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 112
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 144
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->a:Landroid/media/CamcorderProfile;

    .line 149
    const/4 v0, -0x1

    iput v0, p0, Lcom/instagram/creation/video/f/a;->g:I

    .line 177
    iput-boolean v1, p0, Lcom/instagram/creation/video/f/a;->ar:Z

    .line 179
    iput-boolean v1, p0, Lcom/instagram/creation/video/f/a;->at:Z

    .line 181
    new-instance v0, Lcom/instagram/camera/c;

    invoke-direct {v0}, Lcom/instagram/camera/c;-><init>()V

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->au:Lcom/instagram/camera/c;

    .line 186
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->az:Lcom/instagram/creation/video/g/a;

    .line 187
    iput v1, p0, Lcom/instagram/creation/video/f/a;->aA:I

    .line 188
    iput-boolean v1, p0, Lcom/instagram/creation/video/f/a;->aB:Z

    .line 193
    new-instance v0, Lcom/instagram/creation/video/a;

    invoke-direct {v0}, Lcom/instagram/creation/video/a;-><init>()V

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    .line 204
    iput-boolean v1, p0, Lcom/instagram/creation/video/f/a;->aM:Z

    .line 205
    iput-boolean v1, p0, Lcom/instagram/creation/video/f/a;->aN:Z

    .line 206
    iput-boolean v1, p0, Lcom/instagram/creation/video/f/a;->aO:Z

    .line 210
    new-instance v0, Lcom/instagram/creation/video/f/b;

    invoke-direct {v0, p0}, Lcom/instagram/creation/video/f/b;-><init>(Lcom/instagram/creation/video/f/a;)V

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->aQ:Landroid/os/Handler;

    .line 1874
    return-void
.end method

.method static synthetic A(Lcom/instagram/creation/video/f/a;)Landroid/graphics/Matrix;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->f:Landroid/graphics/Matrix;

    return-object v0
.end method

.method static synthetic B(Lcom/instagram/creation/video/f/a;)Lcom/instagram/creation/video/ui/CamcorderPreviewLayout;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aa:Lcom/instagram/creation/video/ui/CamcorderPreviewLayout;

    return-object v0
.end method

.method static synthetic C(Lcom/instagram/creation/video/f/a;)Landroid/hardware/Camera$Parameters;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    return-object v0
.end method

.method static synthetic D(Lcom/instagram/creation/video/f/a;)Lcom/instagram/ui/a/d;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ao:Lcom/instagram/ui/a/d;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/a;Landroid/graphics/Matrix;)Landroid/graphics/Matrix;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 112
    iput-object p1, p0, Lcom/instagram/creation/video/f/a;->f:Landroid/graphics/Matrix;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/a;Landroid/hardware/Camera$Parameters;)Landroid/hardware/Camera$Parameters;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 112
    iput-object p1, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/a;)Lcom/instagram/camera/ui/RotateLayout;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aL:Lcom/instagram/camera/ui/RotateLayout;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/a;Lcom/instagram/pendingmedia/model/c;)Lcom/instagram/pendingmedia/model/c;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 112
    iput-object p1, p0, Lcom/instagram/creation/video/f/a;->av:Lcom/instagram/pendingmedia/model/c;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/a;Lcom/instagram/ui/a/d;)Lcom/instagram/ui/a/d;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 112
    iput-object p1, p0, Lcom/instagram/creation/video/f/a;->ao:Lcom/instagram/ui/a/d;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/a;Ljava/util/List;)Ljava/util/List;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 112
    iput-object p1, p0, Lcom/instagram/creation/video/f/a;->aJ:Ljava/util/List;

    return-object p1
.end method

.method private a(II)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 1389
    iget v0, p0, Lcom/instagram/creation/video/f/a;->h:I

    rem-int/lit16 v0, v0, 0xb4

    if-eqz v0, :cond_3

    .line 1395
    :goto_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->b:Lcom/instagram/creation/video/a/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/a/a;->a()I

    move-result v0

    .line 1396
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->b:Lcom/instagram/creation/video/a/a;

    invoke-virtual {v1}, Lcom/instagram/creation/video/a/a;->b()I

    move-result v1

    .line 1398
    if-ne v0, p2, :cond_0

    if-eq v1, p1, :cond_1

    .line 1399
    :cond_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->b:Lcom/instagram/creation/video/a/a;

    invoke-virtual {v0, p2, p1}, Lcom/instagram/creation/video/a/a;->a(II)V

    .line 1400
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->b:Lcom/instagram/creation/video/a/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/a/a;->c()V

    .line 1401
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->c()V

    .line 1404
    :cond_1
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->b:Lcom/instagram/creation/video/a/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/a/a;->g()Landroid/graphics/SurfaceTexture;

    move-result-object v0

    if-nez v0, :cond_2

    .line 1405
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->b:Lcom/instagram/creation/video/a/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/a/a;->d()V

    .line 1407
    :cond_2
    return-void

    :cond_3
    move v2, p2

    move p2, p1

    move p1, v2

    goto :goto_0
.end method

.method private a(IIFIIIILandroid/graphics/Rect;)V
    .locals 7
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v5, 0x0

    .line 1718
    int-to-float v0, p1

    mul-float/2addr v0, p3

    float-to-int v0, v0

    .line 1719
    int-to-float v1, p2

    mul-float/2addr v1, p3

    float-to-int v1, v1

    .line 1720
    div-int/lit8 v2, v0, 0x2

    sub-int v2, p4, v2

    sub-int v3, p6, v0

    invoke-static {v2, v5, v3}, Lcom/instagram/camera/h;->a(III)I

    move-result v2

    .line 1721
    div-int/lit8 v3, v1, 0x2

    sub-int v3, p5, v3

    sub-int v4, p7, v1

    invoke-static {v3, v5, v4}, Lcom/instagram/camera/h;->a(III)I

    move-result v3

    .line 1723
    new-instance v4, Landroid/graphics/RectF;

    int-to-float v5, v2

    int-to-float v6, v3

    add-int/2addr v0, v2

    int-to-float v0, v0

    add-int/2addr v1, v3

    int-to-float v1, v1

    invoke-direct {v4, v5, v6, v0, v1}, Landroid/graphics/RectF;-><init>(FFFF)V

    .line 1724
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->f:Landroid/graphics/Matrix;

    invoke-virtual {v0, v4}, Landroid/graphics/Matrix;->mapRect(Landroid/graphics/RectF;)Z

    .line 1725
    invoke-static {v4, p8}, Lcom/instagram/camera/h;->a(Landroid/graphics/RectF;Landroid/graphics/Rect;)V

    .line 1726
    return-void
.end method

.method private a(Lcom/instagram/creation/video/a/e;)V
    .locals 3
    .parameter

    .prologue
    .line 1089
    iput-object p1, p0, Lcom/instagram/creation/video/f/a;->aG:Lcom/instagram/creation/video/a/e;

    .line 1090
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aP()V

    .line 1092
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aF:Ljava/util/List;

    if-eqz v0, :cond_0

    .line 1093
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aF:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/a/d;

    .line 1094
    iget-object v2, p0, Lcom/instagram/creation/video/f/a;->aG:Lcom/instagram/creation/video/a/e;

    invoke-interface {v0, v2}, Lcom/instagram/creation/video/a/d;->a(Lcom/instagram/creation/video/a/e;)V

    goto :goto_0

    .line 1097
    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/a;IIFIIIILandroid/graphics/Rect;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 112
    invoke-direct/range {p0 .. p8}, Lcom/instagram/creation/video/f/a;->a(IIFIIIILandroid/graphics/Rect;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/a;Ljava/lang/Throwable;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 112
    invoke-direct {p0, p1}, Lcom/instagram/creation/video/f/a;->a(Ljava/lang/Throwable;)V

    return-void
.end method

.method private a(Lcom/instagram/creation/video/ui/x;)V
    .locals 2
    .parameter

    .prologue
    .line 1533
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ap:Lcom/instagram/creation/video/ui/w;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/w;->a()Lcom/instagram/creation/video/ui/x;

    move-result-object v0

    if-eq v0, p1, :cond_0

    .line 1534
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ap:Lcom/instagram/creation/video/ui/w;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/w;->dismiss()V

    .line 1535
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aQ:Landroid/os/Handler;

    const/16 v1, 0xf

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 1536
    new-instance v0, Lcom/instagram/creation/video/ui/w;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lcom/instagram/creation/video/ui/w;-><init>(Landroid/content/Context;Lcom/instagram/creation/video/ui/x;)V

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->ap:Lcom/instagram/creation/video/ui/w;

    .line 1538
    :cond_0
    return-void
.end method

.method private a(Lcom/instagram/creation/video/ui/x;III)V
    .locals 4
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1520
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ap:Lcom/instagram/creation/video/ui/w;

    if-nez v0, :cond_0

    .line 1521
    new-instance v0, Lcom/instagram/creation/video/ui/w;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lcom/instagram/creation/video/ui/w;-><init>(Landroid/content/Context;Lcom/instagram/creation/video/ui/x;)V

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->ap:Lcom/instagram/creation/video/ui/w;

    .line 1523
    :cond_0
    invoke-direct {p0, p1}, Lcom/instagram/creation/video/f/a;->a(Lcom/instagram/creation/video/ui/x;)V

    .line 1524
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ap:Lcom/instagram/creation/video/ui/w;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/w;->isShowing()Z

    move-result v0

    if-nez v0, :cond_1

    .line 1525
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->v()Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->camcorder_root:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 1526
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->ap:Lcom/instagram/creation/video/ui/w;

    sget v2, Lcom/facebook/bb;->Camcorder_Popup:I

    invoke-virtual {v1, v2}, Lcom/instagram/creation/video/ui/w;->setAnimationStyle(I)V

    .line 1527
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->ap:Lcom/instagram/creation/video/ui/w;

    invoke-virtual {v1, v0, p2, p3, p4}, Lcom/instagram/creation/video/ui/w;->showAtLocation(Landroid/view/View;III)V

    .line 1528
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aQ:Landroid/os/Handler;

    const/16 v1, 0xf

    const-wide/16 v2, 0x7d0

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    .line 1530
    :cond_1
    return-void
.end method

.method private a(Ljava/lang/Throwable;)V
    .locals 1
    .parameter

    .prologue
    .line 1246
    sget v0, Lcom/facebook/ba;->video_failed_to_start:I

    invoke-direct {p0, p1, v0}, Lcom/instagram/creation/video/f/a;->a(Ljava/lang/Throwable;I)V

    .line 1247
    return-void
.end method

.method private a(Ljava/lang/Throwable;I)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 1250
    const-string v0, "CamcorderFragment"

    invoke-static {v0, p1}, Lcom/instagram/g/c;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 1251
    invoke-static {p2}, Lcom/instagram/n/j;->a(I)V

    .line 1252
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->onBackPressed()V

    .line 1253
    return-void
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/a;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 112
    iput-boolean p1, p0, Lcom/instagram/creation/video/f/a;->aM:Z

    return p1
.end method

.method private static aA()I
    .locals 1
    .annotation build Landroid/annotation/TargetApi;
        value = 0x9
    .end annotation

    .prologue
    .line 1150
    invoke-static {}, Landroid/hardware/Camera;->getNumberOfCameras()I

    move-result v0

    return v0
.end method

.method private aB()V
    .locals 2

    .prologue
    .line 1165
    :try_start_0
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->az()I

    move-result v0

    invoke-static {v0}, Landroid/hardware/Camera;->open(I)Landroid/hardware/Camera;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 1176
    :goto_0
    return-void

    .line 1166
    :catch_0
    move-exception v0

    .line 1167
    sget v1, Lcom/facebook/ba;->cannot_connect_camera:I

    invoke-direct {p0, v0, v1}, Lcom/instagram/creation/video/f/a;->a(Ljava/lang/Throwable;I)V

    goto :goto_0
.end method

.method private aC()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 1179
    const-string v0, "CamcorderFragment"

    const-string v1, "closeCamera"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 1180
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    if-nez v0, :cond_0

    .line 1181
    const-string v0, "CamcorderFragment"

    const-string v1, "already stopped"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 1190
    :goto_0
    return-void

    .line 1184
    :cond_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    invoke-virtual {v0, v2}, Landroid/hardware/Camera;->setZoomChangeListener(Landroid/hardware/Camera$OnZoomChangeListener;)V

    .line 1185
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    invoke-virtual {v0, v2}, Landroid/hardware/Camera;->setErrorCallback(Landroid/hardware/Camera$ErrorCallback;)V

    .line 1186
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    invoke-virtual {v0}, Landroid/hardware/Camera;->release()V

    .line 1187
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    .line 1188
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/creation/video/f/a;->at:Z

    goto :goto_0
.end method

.method private aD()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 1193
    const-string v0, "CamcorderFragment"

    const-string v1, "startPreview"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 1195
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->au:Lcom/instagram/camera/c;

    invoke-virtual {v0, v1}, Landroid/hardware/Camera;->setErrorCallback(Landroid/hardware/Camera$ErrorCallback;)V

    .line 1196
    iget-boolean v0, p0, Lcom/instagram/creation/video/f/a;->at:Z

    if-ne v0, v3, :cond_0

    .line 1197
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aE()V

    .line 1200
    :cond_0
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->ak()V

    .line 1202
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    const/16 v1, 0x5a

    invoke-virtual {v0, v1}, Landroid/hardware/Camera;->setDisplayOrientation(I)V

    .line 1204
    :try_start_0
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aG()V
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    .line 1209
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aT()V

    .line 1211
    sget-boolean v0, Lcom/instagram/creation/video/j/a;->j:Z

    if-eqz v0, :cond_1

    .line 1213
    :try_start_1
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->b:Lcom/instagram/creation/video/a/a;

    invoke-virtual {v1}, Lcom/instagram/creation/video/a/a;->g()Landroid/graphics/SurfaceTexture;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/hardware/Camera;->setPreviewTexture(Landroid/graphics/SurfaceTexture;)V
    :try_end_1
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_1

    .line 1235
    :goto_0
    :try_start_2
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    invoke-virtual {v0}, Landroid/hardware/Camera;->startPreview()V
    :try_end_2
    .catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_3

    .line 1242
    iput-boolean v3, p0, Lcom/instagram/creation/video/f/a;->at:Z

    .line 1243
    :goto_1
    return-void

    .line 1205
    :catch_0
    move-exception v0

    .line 1206
    invoke-direct {p0, v0}, Lcom/instagram/creation/video/f/a;->a(Ljava/lang/Throwable;)V

    goto :goto_1

    .line 1214
    :catch_1
    move-exception v0

    .line 1215
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aC()V

    .line 1216
    invoke-direct {p0, v0}, Lcom/instagram/creation/video/f/a;->a(Ljava/lang/Throwable;)V

    goto :goto_1

    .line 1221
    :cond_1
    :try_start_3
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->aC:Lcom/instagram/creation/video/ui/PreviewSurfaceView;

    invoke-virtual {v1}, Lcom/instagram/creation/video/ui/PreviewSurfaceView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/hardware/Camera;->setPreviewDisplay(Landroid/view/SurfaceHolder;)V
    :try_end_3
    .catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_2

    .line 1227
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    iget v1, p0, Lcom/instagram/creation/video/f/a;->aP:I

    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->az()I

    move-result v2

    invoke-static {v1, v2}, Lcom/instagram/creation/video/j/b;->a(II)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/hardware/Camera;->setDisplayOrientation(I)V

    goto :goto_0

    .line 1222
    :catch_2
    move-exception v0

    .line 1223
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aC()V

    .line 1224
    invoke-direct {p0, v0}, Lcom/instagram/creation/video/f/a;->a(Ljava/lang/Throwable;)V

    goto :goto_1

    .line 1236
    :catch_3
    move-exception v0

    .line 1237
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aC()V

    .line 1238
    invoke-direct {p0, v0}, Lcom/instagram/creation/video/f/a;->a(Ljava/lang/Throwable;)V

    goto :goto_1
.end method

.method private aE()V
    .locals 1

    .prologue
    .line 1256
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    invoke-virtual {v0}, Landroid/hardware/Camera;->stopPreview()V

    .line 1257
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/creation/video/f/a;->at:Z

    .line 1258
    return-void
.end method

.method private aF()V
    .locals 2

    .prologue
    .line 1262
    sget-boolean v0, Lcom/instagram/creation/video/j/a;->j:Z

    if-nez v0, :cond_0

    .line 1265
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aE()V

    .line 1275
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/creation/video/f/a;->at:Z

    .line 1276
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->aC:Lcom/instagram/creation/video/ui/PreviewSurfaceView;

    invoke-virtual {v1}, Lcom/instagram/creation/video/ui/PreviewSurfaceView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v1

    invoke-interface {v1}, Landroid/view/SurfaceHolder;->getSurface()Landroid/view/Surface;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/instagram/creation/video/mediarecorder/f;->a(Landroid/view/Surface;)V

    .line 1278
    :cond_0
    return-void
.end method

.method private aG()V
    .locals 3

    .prologue
    .line 1282
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    iget v1, p0, Lcom/instagram/creation/video/f/a;->i:I

    iget v2, p0, Lcom/instagram/creation/video/f/a;->Z:I

    invoke-virtual {v0, v1, v2}, Landroid/hardware/Camera$Parameters;->setPreviewSize(II)V

    .line 1283
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->a:Landroid/media/CamcorderProfile;

    iget v1, v1, Landroid/media/CamcorderProfile;->videoFrameRate:I

    invoke-virtual {v0, v1}, Landroid/hardware/Camera$Parameters;->setPreviewFrameRate(I)V

    .line 1284
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    invoke-static {v0}, Lcom/instagram/creation/video/j/b;->a(Landroid/hardware/Camera$Parameters;)V

    .line 1287
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    invoke-static {v0}, Lcom/instagram/creation/video/j/b;->b(Landroid/hardware/Camera$Parameters;)V

    .line 1289
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/hardware/Camera$Parameters;->setRecordingHint(Z)V

    .line 1291
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0xf

    if-lt v0, v1, :cond_0

    .line 1292
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aH()V

    .line 1294
    :cond_0
    const-string v0, "CamcorderFragment"

    const-string v1, "Setting camera parameters"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 1295
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    invoke-virtual {v0, v1}, Landroid/hardware/Camera;->setParameters(Landroid/hardware/Camera$Parameters;)V

    .line 1297
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    invoke-virtual {v0}, Landroid/hardware/Camera;->getParameters()Landroid/hardware/Camera$Parameters;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    .line 1299
    iget v0, p0, Lcom/instagram/creation/video/f/a;->i:I

    iget v1, p0, Lcom/instagram/creation/video/f/a;->Z:I

    invoke-direct {p0, v0, v1}, Lcom/instagram/creation/video/f/a;->a(II)V

    .line 1300
    return-void
.end method

.method private aH()V
    .locals 3
    .annotation build Landroid/annotation/TargetApi;
        value = 0xf
    .end annotation

    .prologue
    .line 1305
    invoke-static {}, Lcom/instagram/service/b;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    invoke-virtual {v0}, Landroid/hardware/Camera$Parameters;->isVideoStabilizationSupported()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1306
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/hardware/Camera$Parameters;->setVideoStabilization(Z)V

    .line 1311
    :cond_0
    invoke-static {}, Lcom/instagram/service/b;->d()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 1312
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    const-string v1, "video-stabilization"

    const-string v2, "false"

    invoke-virtual {v0, v1, v2}, Landroid/hardware/Camera$Parameters;->set(Ljava/lang/String;Ljava/lang/String;)V

    .line 1314
    :cond_1
    return-void
.end method

.method private aI()V
    .locals 5

    .prologue
    .line 1317
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aa:Lcom/instagram/creation/video/ui/CamcorderPreviewLayout;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->a:Landroid/media/CamcorderProfile;

    iget v1, v1, Landroid/media/CamcorderProfile;->videoFrameWidth:I

    int-to-double v1, v1

    iget-object v3, p0, Lcom/instagram/creation/video/f/a;->a:Landroid/media/CamcorderProfile;

    iget v3, v3, Landroid/media/CamcorderProfile;->videoFrameHeight:I

    int-to-double v3, v3

    div-double/2addr v1, v3

    invoke-virtual {v0, v1, v2}, Lcom/instagram/creation/video/ui/CamcorderPreviewLayout;->setAspectRatio(D)V

    .line 1319
    return-void
.end method

.method private aJ()V
    .locals 2

    .prologue
    .line 1322
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->az()I

    move-result v0

    .line 1323
    invoke-static {}, Lcom/instagram/service/b;->d()Z

    move-result v1

    if-eqz v1, :cond_3

    .line 1325
    const/4 v1, 0x5

    invoke-static {v0, v1}, Landroid/media/CamcorderProfile;->get(II)Landroid/media/CamcorderProfile;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->a:Landroid/media/CamcorderProfile;

    .line 1330
    :goto_0
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aK()V

    .line 1342
    sget-object v0, Landroid/os/Build;->BOARD:Ljava/lang/String;

    const-string v1, "smdk4x12"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    sget-object v0, Landroid/os/Build;->BOARD:Ljava/lang/String;

    const-string v1, "DB85"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 1343
    :cond_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->a:Landroid/media/CamcorderProfile;

    const/4 v1, 0x2

    iput v1, v0, Landroid/media/CamcorderProfile;->audioChannels:I

    .line 1353
    :cond_1
    invoke-static {}, Lcom/instagram/creation/video/c/b;->e()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-static {}, Lcom/instagram/creation/video/j/b;->c()Z

    move-result v0

    if-nez v0, :cond_2

    .line 1354
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->a:Landroid/media/CamcorderProfile;

    const/4 v1, 0x3

    iput v1, v0, Landroid/media/CamcorderProfile;->audioCodec:I

    .line 1356
    :cond_2
    return-void

    .line 1327
    :cond_3
    invoke-static {v0}, Lcom/instagram/creation/video/j/b;->a(I)Landroid/media/CamcorderProfile;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->a:Landroid/media/CamcorderProfile;

    goto :goto_0
.end method

.method private aK()V
    .locals 6

    .prologue
    .line 1359
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    invoke-virtual {v0}, Landroid/hardware/Camera;->getParameters()Landroid/hardware/Camera$Parameters;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    .line 1360
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    invoke-virtual {v0}, Landroid/hardware/Camera$Parameters;->getSupportedVideoSizes()Ljava/util/List;

    move-result-object v0

    if-nez v0, :cond_0

    .line 1361
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->a:Landroid/media/CamcorderProfile;

    iget v0, v0, Landroid/media/CamcorderProfile;->videoFrameWidth:I

    iput v0, p0, Lcom/instagram/creation/video/f/a;->i:I

    .line 1362
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->a:Landroid/media/CamcorderProfile;

    iget v0, v0, Landroid/media/CamcorderProfile;->videoFrameHeight:I

    iput v0, p0, Lcom/instagram/creation/video/f/a;->Z:I

    .line 1383
    :goto_0
    const-string v0, "CamcorderFragment"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "mDesiredPreviewWidth="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/instagram/creation/video/f/a;->i:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ". mDesiredPreviewHeight="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/instagram/creation/video/f/a;->Z:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 1386
    return-void

    .line 1364
    :cond_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    invoke-virtual {v0}, Landroid/hardware/Camera$Parameters;->getSupportedPreviewSizes()Ljava/util/List;

    move-result-object v1

    .line 1365
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    invoke-static {v0, v1}, Lcom/instagram/creation/video/j/b;->a(Landroid/hardware/Camera$Parameters;Ljava/util/List;)Landroid/hardware/Camera$Size;

    move-result-object v0

    .line 1368
    iget v2, v0, Landroid/hardware/Camera$Size;->width:I

    iget v0, v0, Landroid/hardware/Camera$Size;->height:I

    mul-int/2addr v2, v0

    .line 1369
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    .line 1371
    :cond_1
    :goto_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 1372
    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/hardware/Camera$Size;

    .line 1373
    iget v4, v0, Landroid/hardware/Camera$Size;->width:I

    iget v0, v0, Landroid/hardware/Camera$Size;->height:I

    mul-int/2addr v0, v4

    if-le v0, v2, :cond_1

    .line 1374
    invoke-interface {v3}, Ljava/util/Iterator;->remove()V

    goto :goto_1

    .line 1377
    :cond_2
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    iget-object v2, p0, Lcom/instagram/creation/video/f/a;->a:Landroid/media/CamcorderProfile;

    iget v2, v2, Landroid/media/CamcorderProfile;->videoFrameWidth:I

    int-to-double v2, v2

    iget-object v4, p0, Lcom/instagram/creation/video/f/a;->a:Landroid/media/CamcorderProfile;

    iget v4, v4, Landroid/media/CamcorderProfile;->videoFrameHeight:I

    int-to-double v4, v4

    div-double/2addr v2, v4

    invoke-static {v0, v1, v2, v3}, Lcom/instagram/creation/video/j/b;->a(Landroid/app/Activity;Ljava/util/List;D)Landroid/hardware/Camera$Size;

    move-result-object v0

    .line 1379
    iget v1, v0, Landroid/hardware/Camera$Size;->width:I

    iput v1, p0, Lcom/instagram/creation/video/f/a;->i:I

    .line 1380
    iget v0, v0, Landroid/hardware/Camera$Size;->height:I

    iput v0, p0, Lcom/instagram/creation/video/f/a;->Z:I

    goto :goto_0
.end method

.method private aL()V
    .locals 1

    .prologue
    .line 1436
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->b:Lcom/instagram/creation/video/a/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/a/a;->g()Landroid/graphics/SurfaceTexture;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 1437
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->b:Lcom/instagram/creation/video/a/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/a/a;->e()V

    .line 1439
    :cond_0
    return-void
.end method

.method private aM()V
    .locals 1

    .prologue
    .line 1443
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/creation/video/f/a;->aO:Z

    .line 1444
    const/4 v0, 0x0

    invoke-static {p0, v0}, Lcom/instagram/creation/base/e;->a(Landroid/support/v4/app/Fragment;I)V

    .line 1445
    return-void
.end method

.method private aN()Z
    .locals 3

    .prologue
    const/4 v0, 0x0

    .line 1448
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->i()Landroid/os/Bundle;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->i()Landroid/os/Bundle;

    move-result-object v1

    const-string v2, "directShare"

    invoke-virtual {v1, v2, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    if-eqz v1, :cond_0

    const/4 v0, 0x1

    :cond_0
    return v0
.end method

.method private aO()V
    .locals 3

    .prologue
    const/16 v0, 0x8

    .line 1489
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->af:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    if-eqz v1, :cond_1

    .line 1490
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->af:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    invoke-virtual {v1}, Lcom/instagram/creation/video/ui/VideoHighlightButton;->clearAnimation()V

    .line 1491
    iget v1, p0, Lcom/instagram/creation/video/f/a;->ax:I

    const/4 v2, 0x1

    if-le v1, v2, :cond_2

    .line 1492
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->af:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    iget-object v2, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v2}, Lcom/instagram/creation/video/a;->o()I

    move-result v2

    if-nez v2, :cond_0

    const/4 v0, 0x0

    :cond_0
    invoke-virtual {v1, v0}, Lcom/instagram/creation/video/ui/VideoHighlightButton;->setVisibility(I)V

    .line 1497
    :cond_1
    :goto_0
    return-void

    .line 1494
    :cond_2
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->af:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    invoke-virtual {v1, v0}, Lcom/instagram/creation/video/ui/VideoHighlightButton;->setVisibility(I)V

    goto :goto_0
.end method

.method private aP()V
    .locals 5

    .prologue
    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 1500
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/a;->d()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 1501
    iget-object v3, p0, Lcom/instagram/creation/video/f/a;->ak:Landroid/widget/Button;

    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/a;->g()Z

    move-result v0

    if-eqz v0, :cond_0

    sget v0, Lcom/facebook/av;->video_delete_button:I

    :goto_0
    invoke-virtual {v3, v0}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 1503
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->al:Landroid/widget/ViewSwitcher;

    invoke-virtual {v0, v1}, Landroid/widget/ViewSwitcher;->setDisplayedChild(I)V

    .line 1507
    :goto_1
    iget-object v3, p0, Lcom/instagram/creation/video/f/a;->aj:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aG:Lcom/instagram/creation/video/a/e;

    sget-object v4, Lcom/instagram/creation/video/a/e;->d:Lcom/instagram/creation/video/a/e;

    if-ne v0, v4, :cond_2

    move v0, v1

    :goto_2
    invoke-virtual {v3, v0}, Lcom/instagram/creation/video/ui/VideoHighlightButton;->setEnabled(Z)V

    .line 1509
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ak:Landroid/widget/Button;

    iget-object v3, p0, Lcom/instagram/creation/video/f/a;->aG:Lcom/instagram/creation/video/a/e;

    sget-object v4, Lcom/instagram/creation/video/a/e;->d:Lcom/instagram/creation/video/a/e;

    if-ne v3, v4, :cond_3

    :goto_3
    invoke-virtual {v0, v1}, Landroid/widget/Button;->setEnabled(Z)V

    .line 1511
    return-void

    .line 1501
    :cond_0
    sget v0, Lcom/facebook/av;->video_soft_delete_button:I

    goto :goto_0

    .line 1505
    :cond_1
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->al:Landroid/widget/ViewSwitcher;

    invoke-virtual {v0, v2}, Landroid/widget/ViewSwitcher;->setDisplayedChild(I)V

    goto :goto_1

    :cond_2
    move v0, v2

    .line 1507
    goto :goto_2

    :cond_3
    move v1, v2

    .line 1509
    goto :goto_3
.end method

.method private aQ()V
    .locals 2

    .prologue
    .line 1514
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->an:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    if-eqz v0, :cond_0

    .line 1515
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->an:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/a;->o()I

    move-result v0

    if-lez v0, :cond_1

    const/16 v0, 0x8

    :goto_0
    invoke-virtual {v1, v0}, Lcom/instagram/creation/video/ui/VideoHighlightButton;->setVisibility(I)V

    .line 1517
    :cond_0
    return-void

    .line 1515
    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private aR()I
    .locals 1

    .prologue
    .line 1575
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/k;->a(Landroid/content/Context;)I

    move-result v0

    div-int/lit8 v0, v0, 0x5

    return v0
.end method

.method private aS()V
    .locals 3

    .prologue
    .line 1586
    iget-boolean v0, p0, Lcom/instagram/creation/video/f/a;->aH:Z

    if-eqz v0, :cond_0

    .line 1706
    :goto_0
    return-void

    .line 1590
    :cond_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aL:Lcom/instagram/camera/ui/RotateLayout;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ac:Lcom/instagram/creation/video/gl/GLRootView;

    if-nez v0, :cond_2

    .line 1591
    :cond_1
    const-string v0, "CamcorderFragment"

    const-string v1, "Couldn\'t set up tap to focus, missing view"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->e(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 1594
    :cond_2
    invoke-static {}, Lcom/instagram/creation/video/j/b;->b()Z

    move-result v0

    if-nez v0, :cond_3

    .line 1595
    const-string v0, "CamcorderFragment"

    const-string v1, "Couldnt set up tap to focus, not supported"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->e(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 1599
    :cond_3
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aL:Lcom/instagram/camera/ui/RotateLayout;

    sget v1, Lcom/facebook/aw;->focus_indicator:I

    invoke-virtual {v0, v1}, Lcom/instagram/camera/ui/RotateLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/camera/ui/FocusIndicatorView;

    .line 1601
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->ad:Landroid/view/View;

    new-instance v2, Lcom/instagram/creation/video/f/j;

    invoke-direct {v2, p0, v0}, Lcom/instagram/creation/video/f/j;-><init>(Lcom/instagram/creation/video/f/a;Lcom/instagram/camera/ui/FocusIndicatorView;)V

    invoke-virtual {v1, v2}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 1705
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/creation/video/f/a;->aH:Z

    goto :goto_0
.end method

.method private aT()V
    .locals 2

    .prologue
    .line 1729
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    invoke-virtual {v0}, Landroid/hardware/Camera;->getParameters()Landroid/hardware/Camera$Parameters;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    .line 1730
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/hardware/Camera$Parameters;->setFocusAreas(Ljava/util/List;)V

    .line 1731
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aL:Lcom/instagram/camera/ui/RotateLayout;

    if-eqz v0, :cond_0

    .line 1732
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aL:Lcom/instagram/camera/ui/RotateLayout;

    sget v1, Lcom/facebook/aw;->focus_indicator:I

    invoke-virtual {v0, v1}, Lcom/instagram/camera/ui/RotateLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/camera/ui/FocusIndicatorView;

    .line 1734
    invoke-virtual {v0}, Lcom/instagram/camera/ui/FocusIndicatorView;->d()V

    .line 1736
    :cond_0
    return-void
.end method

.method private ak()V
    .locals 2

    .prologue
    .line 304
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/camera/h;->a(Landroid/app/Activity;)I

    move-result v0

    iput v0, p0, Lcom/instagram/creation/video/f/a;->aP:I

    .line 306
    const/4 v0, 0x0

    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->az()I

    move-result v1

    invoke-static {v0, v1}, Lcom/instagram/creation/video/j/b;->a(II)I

    move-result v0

    iput v0, p0, Lcom/instagram/creation/video/f/a;->h:I

    .line 307
    return-void
.end method

.method private al()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 349
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->v()Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->surfaceview:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/ui/PreviewSurfaceView;

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->aC:Lcom/instagram/creation/video/ui/PreviewSurfaceView;

    .line 350
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aD:Lcom/instagram/creation/video/f/w;

    if-nez v0, :cond_0

    .line 351
    new-instance v0, Lcom/instagram/creation/video/f/w;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/instagram/creation/video/f/w;-><init>(Lcom/instagram/creation/video/f/a;Lcom/instagram/creation/video/f/b;)V

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->aD:Lcom/instagram/creation/video/f/w;

    .line 352
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aC:Lcom/instagram/creation/video/ui/PreviewSurfaceView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/PreviewSurfaceView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->aD:Lcom/instagram/creation/video/f/w;

    invoke-interface {v0, v1}, Landroid/view/SurfaceHolder;->addCallback(Landroid/view/SurfaceHolder$Callback;)V

    .line 355
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->v()Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->surfaceview_frame:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 356
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->v()Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->ics_preview:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 357
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->v()Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->non_ics_preview:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 358
    return-void
.end method

.method private am()V
    .locals 4

    .prologue
    .line 642
    const-string v0, "CamcorderFragment"

    const-string v1, "Starting new session"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 643
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->av:Lcom/instagram/pendingmedia/model/c;

    if-nez v0, :cond_0

    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->an()Z

    move-result v0

    if-nez v0, :cond_0

    .line 654
    :goto_0
    return-void

    .line 646
    :cond_0
    invoke-static {}, Lcom/instagram/pendingmedia/b/a;->a()Lcom/instagram/pendingmedia/b/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/b/a;->b()V

    .line 648
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/a;->a(Z)V

    .line 649
    invoke-static {}, Ljava/lang/System;->nanoTime()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/pendingmedia/model/c;->b(Ljava/lang/String;)Lcom/instagram/pendingmedia/model/c;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->av:Lcom/instagram/pendingmedia/model/c;

    .line 650
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->av:Lcom/instagram/pendingmedia/model/c;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->av:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->I()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->az()I

    move-result v2

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-static {v1, v2, v3}, Lcom/instagram/creation/video/j/k;->a(Ljava/lang/String;ILandroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/pendingmedia/model/c;->i(Ljava/lang/String;)V

    .line 652
    invoke-static {}, Lcom/instagram/pendingmedia/b/a;->a()Lcom/instagram/pendingmedia/b/a;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->av:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->a()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/creation/video/f/a;->av:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0, v1, v2}, Lcom/instagram/pendingmedia/b/a;->a(Ljava/lang/String;Lcom/instagram/pendingmedia/model/c;)V

    .line 653
    invoke-static {}, Lcom/instagram/pendingmedia/b/c;->a()Lcom/instagram/pendingmedia/b/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/b/c;->b()V

    goto :goto_0
.end method

.method private an()Z
    .locals 3

    .prologue
    .line 658
    :try_start_0
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/creation/video/j/k;->e(Landroid/content/Context;)V
    :try_end_0
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0

    .line 659
    const/4 v0, 0x1

    .line 667
    :goto_0
    return v0

    .line 660
    :catch_0
    move-exception v0

    .line 661
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->aQ:Landroid/os/Handler;

    new-instance v2, Lcom/instagram/creation/video/f/d;

    invoke-direct {v2, p0, v0}, Lcom/instagram/creation/video/f/d;-><init>(Lcom/instagram/creation/video/f/a;Ljava/lang/IllegalStateException;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 667
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private ao()V
    .locals 3

    .prologue
    .line 672
    iget-boolean v0, p0, Lcom/instagram/creation/video/f/a;->aO:Z

    if-nez v0, :cond_0

    .line 673
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/base/b;

    sget-object v1, Lcom/instagram/creation/base/c;->a:Lcom/instagram/creation/base/c;

    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aN()Z

    move-result v2

    invoke-interface {v0, v1, v2}, Lcom/instagram/creation/base/b;->a(Lcom/instagram/creation/base/c;Z)V

    .line 676
    :cond_0
    return-void
.end method

.method private ap()V
    .locals 0

    .prologue
    .line 727
    return-void
.end method

.method private aq()V
    .locals 2

    .prologue
    .line 797
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aQ:Landroid/os/Handler;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 798
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x80

    invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V

    .line 799
    return-void
.end method

.method private ar()V
    .locals 4

    .prologue
    const/4 v3, 0x2

    .line 802
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aQ:Landroid/os/Handler;

    invoke-virtual {v0, v3}, Landroid/os/Handler;->removeMessages(I)V

    .line 803
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x80

    invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V

    .line 804
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aQ:Landroid/os/Handler;

    const-wide/32 v1, 0x1d4c0

    invoke-virtual {v0, v3, v1, v2}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    .line 805
    return-void
.end method

.method private as()V
    .locals 2

    .prologue
    .line 808
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aQ:Landroid/os/Handler;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 809
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x80

    invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V

    .line 810
    return-void
.end method

.method private at()V
    .locals 4

    .prologue
    const/4 v2, 0x1

    .line 926
    const-string v0, "CamcorderFragment"

    const-string v1, "initializeRecorder"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 928
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    if-nez v0, :cond_0

    .line 959
    :goto_0
    return-void

    .line 930
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/creation/video/mediarecorder/i;->a(Landroid/content/Context;)Lcom/instagram/creation/video/mediarecorder/f;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    .line 932
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aF()V

    .line 935
    :try_start_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    invoke-virtual {v0}, Landroid/hardware/Camera;->unlock()V
    :try_end_0
    .catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0

    .line 940
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    invoke-interface {v0, v1}, Lcom/instagram/creation/video/mediarecorder/f;->setCamera(Landroid/hardware/Camera;)V

    .line 941
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    const/4 v1, 0x5

    invoke-interface {v0, v1}, Lcom/instagram/creation/video/mediarecorder/f;->setAudioSource(I)V

    .line 942
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    invoke-interface {v0, v2}, Lcom/instagram/creation/video/mediarecorder/f;->setVideoSource(I)V

    .line 943
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->a:Landroid/media/CamcorderProfile;

    invoke-interface {v0, v1}, Lcom/instagram/creation/video/mediarecorder/f;->a(Landroid/media/CamcorderProfile;)V

    .line 945
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->av:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->I()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v0, v1, v2}, Lcom/instagram/creation/video/j/k;->a(Ljava/lang/String;Landroid/content/Context;Z)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->ay:Ljava/lang/String;

    .line 947
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->ay:Ljava/lang/String;

    invoke-interface {v0, v1}, Lcom/instagram/creation/video/mediarecorder/f;->a(Ljava/lang/String;)V

    .line 950
    :try_start_1
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    invoke-interface {v0}, Lcom/instagram/creation/video/mediarecorder/f;->a()V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1

    .line 957
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    invoke-interface {v0, p0}, Lcom/instagram/creation/video/mediarecorder/f;->a(Lcom/instagram/creation/video/mediarecorder/g;)V

    .line 958
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    invoke-interface {v0, p0}, Lcom/instagram/creation/video/mediarecorder/f;->a(Lcom/instagram/creation/video/mediarecorder/h;)V

    goto :goto_0

    .line 936
    :catch_0
    move-exception v0

    .line 937
    const-string v0, "CamcorderFragment"

    const-string v1, "Couldn\'t unlock camera"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->e(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 951
    :catch_1
    move-exception v0

    .line 952
    const-string v1, "CamcorderFragment"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "prepare failed for "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/instagram/creation/video/f/a;->ay:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v0}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 953
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aw()V

    .line 954
    new-instance v1, Ljava/lang/RuntimeException;

    invoke-direct {v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V

    throw v1
.end method

.method private au()V
    .locals 0

    .prologue
    .line 962
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->av()Z

    .line 963
    return-void
.end method

.method private av()Z
    .locals 6

    .prologue
    const/4 v1, 0x0

    .line 966
    const-string v0, "CamcorderFragment"

    const-string v2, "stopVideoRecording"

    invoke-static {v0, v2}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 969
    iget-boolean v0, p0, Lcom/instagram/creation/video/f/a;->aq:Z

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    if-eqz v0, :cond_5

    .line 971
    :try_start_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    const/4 v2, 0x0

    invoke-interface {v0, v2}, Lcom/instagram/creation/video/mediarecorder/f;->a(Lcom/instagram/creation/video/mediarecorder/g;)V

    .line 972
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    const/4 v2, 0x0

    invoke-interface {v0, v2}, Lcom/instagram/creation/video/mediarecorder/f;->a(Lcom/instagram/creation/video/mediarecorder/h;)V

    .line 973
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    .line 974
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    invoke-interface {v0}, Lcom/instagram/creation/video/mediarecorder/f;->c()V

    .line 975
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    sub-long v2, v4, v2

    long-to-int v0, v2

    iget-object v2, p0, Lcom/instagram/creation/video/f/a;->aw:Landroid/content/SharedPreferences;

    invoke-static {v0, v2}, Lcom/instagram/creation/video/j/b;->a(ILandroid/content/SharedPreferences;)V

    .line 977
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    invoke-virtual {v0}, Landroid/hardware/Camera;->reconnect()V

    .line 978
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/instagram/creation/video/f/a;->g(Z)V

    .line 979
    const-string v0, "CamcorderFragment"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "stopVideoRecording: Setting current video filename: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/instagram/creation/video/f/a;->ay:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 981
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    iget-object v2, p0, Lcom/instagram/creation/video/f/a;->ay:Ljava/lang/String;

    invoke-virtual {v0, v2}, Lcom/instagram/creation/video/a;->a(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move v0, v1

    .line 990
    :goto_0
    iput-boolean v1, p0, Lcom/instagram/creation/video/f/a;->aq:Z

    .line 993
    if-nez v0, :cond_0

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v1}, Lcom/instagram/creation/video/a;->n()Z

    move-result v1

    if-nez v1, :cond_0

    .line 994
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->ad()V

    .line 1006
    :cond_0
    iget-boolean v1, p0, Lcom/instagram/creation/video/f/a;->ar:Z

    if-eqz v1, :cond_1

    .line 1007
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aC()V

    .line 1012
    :cond_1
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->ar()V

    .line 1014
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aw()V

    .line 1015
    iget-boolean v1, p0, Lcom/instagram/creation/video/f/a;->ar:Z

    if-nez v1, :cond_2

    .line 1016
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    invoke-virtual {v1}, Landroid/hardware/Camera;->lock()V

    .line 1021
    :cond_2
    :goto_1
    iget-boolean v1, p0, Lcom/instagram/creation/video/f/a;->ar:Z

    if-nez v1, :cond_3

    .line 1022
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    invoke-virtual {v1}, Landroid/hardware/Camera;->getParameters()Landroid/hardware/Camera$Parameters;

    move-result-object v1

    iput-object v1, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    .line 1025
    :cond_3
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v1}, Lcom/instagram/creation/video/a;->i()V

    .line 1026
    sget-object v1, Lcom/instagram/creation/video/a/e;->d:Lcom/instagram/creation/video/a/e;

    invoke-direct {p0, v1}, Lcom/instagram/creation/video/f/a;->a(Lcom/instagram/creation/video/a/e;)V

    .line 1028
    return v0

    .line 982
    :catch_0
    move-exception v0

    .line 983
    const-string v0, "CamcorderFragment"

    const-string v2, "stop failed, removing file"

    invoke-static {v0, v2}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 984
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ay:Ljava/lang/String;

    if-eqz v0, :cond_4

    .line 985
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ay:Ljava/lang/String;

    invoke-static {v0}, Lcom/instagram/n/a;->b(Ljava/lang/String;)Z

    .line 987
    :cond_4
    const/4 v0, 0x1

    goto :goto_0

    :cond_5
    move v0, v1

    goto :goto_1
.end method

.method private aw()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 1104
    const-string v0, "CamcorderFragment"

    const-string v1, "Releasing media recorder."

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 1105
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    if-eqz v0, :cond_0

    .line 1106
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ay:Ljava/lang/String;

    invoke-static {v0}, Lcom/instagram/n/a;->c(Ljava/lang/String;)V

    .line 1107
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    invoke-interface {v0}, Lcom/instagram/creation/video/mediarecorder/f;->d()V

    .line 1108
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    invoke-interface {v0}, Lcom/instagram/creation/video/mediarecorder/f;->e()V

    .line 1110
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    .line 1112
    :cond_0
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->ay:Ljava/lang/String;

    .line 1113
    return-void
.end method

.method private ax()V
    .locals 3

    .prologue
    .line 1134
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.android.music.musicservicecommand"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 1135
    const-string v1, "command"

    const-string v2, "pause"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1137
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/support/v4/app/j;->sendBroadcast(Landroid/content/Intent;)V

    .line 1138
    return-void
.end method

.method private ay()V
    .locals 2

    .prologue
    .line 1141
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->am:Lcom/instagram/creation/video/ui/VideoShutterButton;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/ui/VideoShutterButton;->setEnabled(Z)V

    .line 1142
    return-void
.end method

.method private az()I
    .locals 1

    .prologue
    .line 1145
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aw:Landroid/content/SharedPreferences;

    invoke-static {v0}, Lcom/instagram/camera/g;->c(Landroid/content/SharedPreferences;)I

    move-result v0

    return v0
.end method

.method static synthetic b(Lcom/instagram/creation/video/f/a;)Lcom/instagram/creation/video/a;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    return-object v0
.end method

.method static synthetic b(Lcom/instagram/creation/video/f/a;Ljava/util/List;)Ljava/util/List;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 112
    iput-object p1, p0, Lcom/instagram/creation/video/f/a;->aK:Ljava/util/List;

    return-object p1
.end method

.method private b(Z)V
    .locals 4
    .parameter

    .prologue
    .line 1116
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    const-string v1, "audio"

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/media/AudioManager;

    .line 1117
    const/4 v2, 0x1

    .line 1118
    invoke-virtual {v0, v2, p1}, Landroid/media/AudioManager;->setStreamSolo(IZ)V

    .line 1119
    if-eqz p1, :cond_1

    const/4 v1, 0x0

    .line 1121
    :goto_0
    invoke-virtual {v0}, Landroid/media/AudioManager;->getRingerMode()I

    move-result v3

    if-eq v1, v3, :cond_0

    .line 1122
    invoke-virtual {v0, v1}, Landroid/media/AudioManager;->setRingerMode(I)V

    .line 1124
    :cond_0
    invoke-virtual {v0, v2, p1}, Landroid/media/AudioManager;->setStreamMute(IZ)V

    .line 1125
    return-void

    .line 1119
    :cond_1
    iget v1, p0, Lcom/instagram/creation/video/f/a;->aA:I

    goto :goto_0
.end method

.method static synthetic b(Lcom/instagram/creation/video/f/a;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 112
    iput-boolean p1, p0, Lcom/instagram/creation/video/f/a;->aN:Z

    return p1
.end method

.method static synthetic c(Lcom/instagram/creation/video/f/a;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aQ:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/creation/video/f/a;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 112
    iput-boolean p1, p0, Lcom/instagram/creation/video/f/a;->aB:Z

    return p1
.end method

.method static synthetic d(Lcom/instagram/creation/video/f/a;)Lcom/instagram/creation/video/ui/w;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ap:Lcom/instagram/creation/video/ui/w;

    return-object v0
.end method

.method static synthetic d(Lcom/instagram/creation/video/f/a;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 112
    invoke-direct {p0, p1}, Lcom/instagram/creation/video/f/a;->g(Z)V

    return-void
.end method

.method static synthetic e(Lcom/instagram/creation/video/f/a;)I
    .locals 1
    .parameter

    .prologue
    .line 112
    iget v0, p0, Lcom/instagram/creation/video/f/a;->h:I

    return v0
.end method

.method static synthetic e(Lcom/instagram/creation/video/f/a;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 112
    iput-boolean p1, p0, Lcom/instagram/creation/video/f/a;->aI:Z

    return p1
.end method

.method static synthetic f(Lcom/instagram/creation/video/f/a;)Z
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-boolean v0, p0, Lcom/instagram/creation/video/f/a;->aq:Z

    return v0
.end method

.method static synthetic g(Lcom/instagram/creation/video/f/a;)V
    .locals 0
    .parameter

    .prologue
    .line 112
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aD()V

    return-void
.end method

.method private g(Z)V
    .locals 2
    .parameter

    .prologue
    .line 1709
    iget-boolean v0, p0, Lcom/instagram/creation/video/f/a;->aI:Z

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/instagram/creation/video/j/b;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1710
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    invoke-virtual {v0}, Landroid/hardware/Camera;->getParameters()Landroid/hardware/Camera$Parameters;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    .line 1711
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    invoke-virtual {v0, p1}, Landroid/hardware/Camera$Parameters;->setAutoExposureLock(Z)V

    .line 1712
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    invoke-virtual {v0, v1}, Landroid/hardware/Camera;->setParameters(Landroid/hardware/Camera$Parameters;)V

    .line 1714
    :cond_0
    return-void
.end method

.method static synthetic h(Lcom/instagram/creation/video/f/a;)J
    .locals 2
    .parameter

    .prologue
    .line 112
    iget-wide v0, p0, Lcom/instagram/creation/video/f/a;->as:J

    return-wide v0
.end method

.method static synthetic i(Lcom/instagram/creation/video/f/a;)Landroid/widget/Button;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ak:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic j(Lcom/instagram/creation/video/f/a;)V
    .locals 0
    .parameter

    .prologue
    .line 112
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->ao()V

    return-void
.end method

.method static synthetic k(Lcom/instagram/creation/video/f/a;)Lcom/instagram/creation/video/gl/GLRootView;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ac:Lcom/instagram/creation/video/gl/GLRootView;

    return-object v0
.end method

.method static synthetic l(Lcom/instagram/creation/video/f/a;)Z
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-boolean v0, p0, Lcom/instagram/creation/video/f/a;->aM:Z

    return v0
.end method

.method static synthetic m(Lcom/instagram/creation/video/f/a;)V
    .locals 0
    .parameter

    .prologue
    .line 112
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aM()V

    return-void
.end method

.method static synthetic n(Lcom/instagram/creation/video/f/a;)Z
    .locals 1
    .parameter

    .prologue
    .line 112
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->av()Z

    move-result v0

    return v0
.end method

.method static synthetic o(Lcom/instagram/creation/video/f/a;)Lcom/instagram/pendingmedia/model/c;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->av:Lcom/instagram/pendingmedia/model/c;

    return-object v0
.end method

.method static synthetic p(Lcom/instagram/creation/video/f/a;)V
    .locals 0
    .parameter

    .prologue
    .line 112
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->am()V

    return-void
.end method

.method static synthetic q(Lcom/instagram/creation/video/f/a;)Z
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-boolean v0, p0, Lcom/instagram/creation/video/f/a;->aB:Z

    return v0
.end method

.method static synthetic r(Lcom/instagram/creation/video/f/a;)Lcom/instagram/creation/video/g/a;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->az:Lcom/instagram/creation/video/g/a;

    return-object v0
.end method

.method static synthetic s(Lcom/instagram/creation/video/f/a;)Z
    .locals 1
    .parameter

    .prologue
    .line 112
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aN()Z

    move-result v0

    return v0
.end method

.method static synthetic t(Lcom/instagram/creation/video/f/a;)Lcom/instagram/creation/video/ui/VideoShutterButton;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->am:Lcom/instagram/creation/video/ui/VideoShutterButton;

    return-object v0
.end method

.method static synthetic u(Lcom/instagram/creation/video/f/a;)Lcom/instagram/creation/video/ui/CamcorderBlinker;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ai:Lcom/instagram/creation/video/ui/CamcorderBlinker;

    return-object v0
.end method

.method static synthetic v(Lcom/instagram/creation/video/f/a;)Z
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-boolean v0, p0, Lcom/instagram/creation/video/f/a;->ar:Z

    return v0
.end method

.method static synthetic w(Lcom/instagram/creation/video/f/a;)Landroid/hardware/Camera;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    return-object v0
.end method

.method static synthetic x(Lcom/instagram/creation/video/f/a;)I
    .locals 1
    .parameter

    .prologue
    .line 112
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->az()I

    move-result v0

    return v0
.end method

.method static synthetic y(Lcom/instagram/creation/video/f/a;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aJ:Ljava/util/List;

    return-object v0
.end method

.method static synthetic z(Lcom/instagram/creation/video/f/a;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aK:Ljava/util/List;

    return-object v0
.end method


# virtual methods
.method public X()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 688
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/creation/video/f/a;->ar:Z

    .line 689
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ai:Lcom/instagram/creation/video/ui/CamcorderBlinker;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/CamcorderBlinker;->c()V

    .line 691
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ap:Lcom/instagram/creation/video/ui/w;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ap:Lcom/instagram/creation/video/ui/w;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/w;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 692
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ap:Lcom/instagram/creation/video/ui/w;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/w;->dismiss()V

    .line 695
    :cond_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aQ:Landroid/os/Handler;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V

    .line 697
    iget-boolean v0, p0, Lcom/instagram/creation/video/f/a;->aq:Z

    if-eqz v0, :cond_1

    .line 699
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->au()V

    .line 705
    :goto_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ac:Lcom/instagram/creation/video/gl/GLRootView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/gl/GLRootView;->onPause()V

    .line 707
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aL()V

    .line 709
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->v()Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->black_bg:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 721
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aq()V

    .line 723
    invoke-direct {p0, v2}, Lcom/instagram/creation/video/f/a;->b(Z)V

    .line 724
    return-void

    .line 701
    :cond_1
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aC()V

    goto :goto_0
.end method

.method public Y()V
    .locals 2

    .prologue
    .line 739
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    const-string v1, "audio"

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/media/AudioManager;

    .line 741
    invoke-virtual {v0}, Landroid/media/AudioManager;->getRingerMode()I

    move-result v0

    iput v0, p0, Lcom/instagram/creation/video/f/a;->aA:I

    .line 742
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/instagram/creation/video/f/a;->b(Z)V

    .line 744
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/creation/video/f/a;->ar:Z

    .line 746
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ac:Lcom/instagram/creation/video/gl/GLRootView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/gl/GLRootView;->onResume()V

    .line 747
    return-void
.end method

.method public Z()V
    .locals 5

    .prologue
    .line 751
    new-instance v0, Lcom/instagram/creation/video/f/e;

    invoke-direct {v0, p0}, Lcom/instagram/creation/video/f/e;-><init>(Lcom/instagram/creation/video/f/a;)V

    .line 759
    new-instance v1, Ljava/util/Timer;

    invoke-direct {v1}, Ljava/util/Timer;-><init>()V

    .line 760
    new-instance v2, Lcom/instagram/creation/video/f/f;

    invoke-direct {v2, p0, v0}, Lcom/instagram/creation/video/f/f;-><init>(Lcom/instagram/creation/video/f/a;Ljava/lang/Runnable;)V

    const-wide/16 v3, 0x12c

    invoke-virtual {v1, v2, v3, v4}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    .line 767
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aO()V

    .line 769
    iget-boolean v0, p0, Lcom/instagram/creation/video/f/a;->at:Z

    if-nez v0, :cond_1

    .line 770
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aB()V

    .line 771
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aJ()V

    .line 772
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aI()V

    .line 773
    iget-boolean v0, p0, Lcom/instagram/creation/video/f/a;->aN:Z

    if-eqz v0, :cond_0

    .line 774
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aD()V

    .line 783
    :goto_0
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->ar()V

    .line 793
    const-string v0, "CamcorderFragment"

    const-string v1, "onResumeAfterSuper"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 794
    return-void

    .line 776
    :cond_0
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/creation/video/f/a;->aM:Z

    goto :goto_0

    .line 779
    :cond_1
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/instagram/creation/video/f/a;->as:J

    .line 780
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aQ:Landroid/os/Handler;

    const/4 v1, 0x4

    const-wide/16 v2, 0x64

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    goto :goto_0
.end method

.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v3, 0x0

    .line 363
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/instagram/creation/video/f/a;->d(Z)V

    .line 364
    sget v0, Lcom/facebook/ax;->fragment_camcorder:I

    invoke-virtual {p1, v0, p2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 366
    sget v0, Lcom/facebook/aw;->camera_preview:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/gl/GLRootView;

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->ac:Lcom/instagram/creation/video/gl/GLRootView;

    .line 367
    sget v0, Lcom/facebook/aw;->black_bg:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/high16 v2, -0x100

    invoke-virtual {v0, v2}, Landroid/view/View;->setBackgroundColor(I)V

    .line 368
    sget v0, Lcom/facebook/aw;->frame:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/ui/CamcorderPreviewLayout;

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->aa:Lcom/instagram/creation/video/ui/CamcorderPreviewLayout;

    .line 370
    sget v0, Lcom/facebook/aw;->preview_overlay:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->ad:Landroid/view/View;

    .line 372
    sget v0, Lcom/facebook/aw;->fragment_camera_shutter_button:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/ui/VideoShutterButton;

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->am:Lcom/instagram/creation/video/ui/VideoShutterButton;

    .line 374
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->am:Lcom/instagram/creation/video/ui/VideoShutterButton;

    new-instance v2, Lcom/instagram/creation/video/a/g;

    invoke-direct {v2, p0, p0}, Lcom/instagram/creation/video/a/g;-><init>(Lcom/instagram/creation/video/a/f;Lcom/instagram/creation/video/f/a;)V

    invoke-virtual {v0, v2}, Lcom/instagram/creation/video/ui/VideoShutterButton;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 375
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->am:Lcom/instagram/creation/video/ui/VideoShutterButton;

    iget-object v2, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v0, v2}, Lcom/instagram/creation/video/ui/VideoShutterButton;->setClipStackManager(Lcom/instagram/creation/video/a;)V

    .line 376
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->am:Lcom/instagram/creation/video/ui/VideoShutterButton;

    sget v2, Lcom/facebook/av;->camera_shoot_buttonbar_button_video_default:I

    invoke-virtual {v0, v2}, Lcom/instagram/creation/video/ui/VideoShutterButton;->setBackgroundResource(I)V

    .line 379
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->am:Lcom/instagram/creation/video/ui/VideoShutterButton;

    invoke-virtual {v0, v3}, Lcom/instagram/creation/video/ui/VideoShutterButton;->setEnabled(Z)V

    .line 381
    sget v0, Lcom/facebook/aw;->blinker:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/ui/CamcorderBlinker;

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->ai:Lcom/instagram/creation/video/ui/CamcorderBlinker;

    .line 382
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ai:Lcom/instagram/creation/video/ui/CamcorderBlinker;

    iget-object v2, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v0, v2}, Lcom/instagram/creation/video/ui/CamcorderBlinker;->setClipStackManager(Lcom/instagram/creation/video/a;)V

    .line 384
    sget v0, Lcom/facebook/aw;->button_remove_actual:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->ak:Landroid/widget/Button;

    .line 385
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ak:Landroid/widget/Button;

    new-instance v2, Lcom/instagram/creation/video/f/l;

    invoke-direct {v2, p0, v1}, Lcom/instagram/creation/video/f/l;-><init>(Lcom/instagram/creation/video/f/a;Landroid/view/View;)V

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 397
    sget v0, Lcom/facebook/aw;->button_remove:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/ui/VideoHighlightButton;

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->aj:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    .line 398
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aj:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    new-instance v2, Lcom/instagram/creation/video/f/m;

    invoke-direct {v2, p0}, Lcom/instagram/creation/video/f/m;-><init>(Lcom/instagram/creation/video/f/a;)V

    invoke-virtual {v0, v2}, Lcom/instagram/creation/video/ui/VideoHighlightButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 406
    sget v0, Lcom/facebook/aw;->backspace_switcher:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ViewSwitcher;

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->al:Landroid/widget/ViewSwitcher;

    .line 407
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->b:Lcom/instagram/creation/video/a/a;

    if-nez v0, :cond_0

    .line 408
    const-string v0, "CamcorderFragment"

    const-string v2, "Creating camera screen nail."

    invoke-static {v0, v2}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 409
    new-instance v0, Lcom/instagram/creation/video/a/a;

    invoke-direct {v0, p0}, Lcom/instagram/creation/video/a/a;-><init>(Lcom/instagram/creation/video/a/b;)V

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->b:Lcom/instagram/creation/video/a/a;

    .line 410
    new-instance v0, Lcom/instagram/creation/video/ui/i;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v2

    invoke-direct {v0, v2}, Lcom/instagram/creation/video/ui/i;-><init>(Landroid/app/Activity;)V

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->ab:Lcom/instagram/creation/video/ui/i;

    .line 411
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ab:Lcom/instagram/creation/video/ui/i;

    invoke-virtual {v0, p0}, Lcom/instagram/creation/video/ui/i;->a(Lcom/instagram/creation/video/ui/j;)V

    .line 412
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ab:Lcom/instagram/creation/video/ui/i;

    iget-object v2, p0, Lcom/instagram/creation/video/f/a;->b:Lcom/instagram/creation/video/a/a;

    invoke-virtual {v0, v2}, Lcom/instagram/creation/video/ui/i;->a(Lcom/instagram/creation/video/ui/n;)V

    .line 413
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ac:Lcom/instagram/creation/video/gl/GLRootView;

    iget-object v2, p0, Lcom/instagram/creation/video/f/a;->ab:Lcom/instagram/creation/video/ui/i;

    invoke-virtual {v0, v2}, Lcom/instagram/creation/video/gl/GLRootView;->setContentPane(Lcom/instagram/creation/video/gl/w;)V

    .line 414
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ac:Lcom/instagram/creation/video/gl/GLRootView;

    new-instance v2, Lcom/instagram/creation/video/f/n;

    invoke-direct {v2, p0}, Lcom/instagram/creation/video/f/n;-><init>(Lcom/instagram/creation/video/f/a;)V

    invoke-virtual {v0, v2}, Lcom/instagram/creation/video/gl/GLRootView;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V

    .line 432
    :cond_0
    sget v0, Lcom/facebook/aw;->focus_indicator_rotate_layout:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/camera/ui/RotateLayout;

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->aL:Lcom/instagram/camera/ui/RotateLayout;

    .line 433
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aS()V

    .line 434
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->ak()V

    .line 436
    return-object v1
.end method

.method public a()V
    .locals 0

    .prologue
    .line 323
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->ah()V

    .line 324
    return-void
.end method

.method public a(IILandroid/content/Intent;)V
    .locals 5
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v4, 0x1

    .line 1453
    const-string v0, "CamcorderFragment"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "onActivityResult "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\t"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 1454
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/creation/video/f/a;->aO:Z

    .line 1455
    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    if-nez p3, :cond_1

    .line 1484
    :cond_0
    :goto_0
    return-void

    .line 1459
    :cond_1
    if-nez p1, :cond_0

    .line 1460
    const/4 v0, 0x0

    invoke-static {p3, v0}, Lcom/instagram/creation/base/e;->a(Landroid/content/Intent;Ljava/io/File;)Landroid/net/Uri;

    move-result-object v0

    .line 1462
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1, v0}, Lcom/instagram/creation/video/j/j;->a(Landroid/content/Context;Landroid/net/Uri;)Ljava/lang/String;

    move-result-object v0

    .line 1463
    const-string v1, "video_invalid_url"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_3

    .line 1465
    invoke-static {v0}, Lcom/instagram/creation/video/g/a;->a(Ljava/lang/String;)Lcom/instagram/creation/video/g/a;

    move-result-object v0

    .line 1467
    invoke-static {v0}, Lcom/instagram/creation/video/j/j;->a(Lcom/instagram/creation/video/g/a;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 1468
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->av:Lcom/instagram/pendingmedia/model/c;

    if-nez v1, :cond_2

    .line 1469
    iput-boolean v4, p0, Lcom/instagram/creation/video/f/a;->aB:Z

    .line 1470
    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->az:Lcom/instagram/creation/video/g/a;

    goto :goto_0

    .line 1472
    :cond_2
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->m()Landroid/support/v4/app/r;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/creation/video/f/a;->av:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v2}, Lcom/instagram/pendingmedia/model/c;->a()Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aN()Z

    move-result v3

    invoke-static {v1, v2, v0, v4, v3}, Lcom/instagram/creation/video/j/j;->a(Landroid/support/v4/app/r;Ljava/lang/String;Lcom/instagram/creation/video/g/a;ZZ)V

    goto :goto_0

    .line 1481
    :cond_3
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/creation/video/j/j;->a(Landroid/app/Activity;)V

    goto :goto_0
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 1
    .parameter

    .prologue
    .line 328
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->a(Landroid/os/Bundle;)V

    .line 330
    if-eqz p1, :cond_0

    .line 331
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v0, p1}, Lcom/instagram/creation/video/a;->b(Landroid/os/Bundle;)V

    .line 334
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/a;->a(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 335
    sget v0, Lcom/facebook/ba;->video_failed_to_start:I

    invoke-static {v0}, Lcom/instagram/n/j;->a(I)V

    .line 336
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->ao()V

    .line 339
    :cond_1
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->aw:Landroid/content/SharedPreferences;

    .line 340
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v0, p0}, Lcom/instagram/creation/video/a;->a(Lcom/instagram/creation/video/c;)V

    .line 341
    sget-object v0, Lcom/instagram/creation/video/a/e;->d:Lcom/instagram/creation/video/a/e;

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->aG:Lcom/instagram/creation/video/a/e;

    .line 342
    invoke-static {}, Lcom/instagram/creation/video/f/a;->aA()I

    move-result v0

    iput v0, p0, Lcom/instagram/creation/video/f/a;->ax:I

    .line 343
    return-void
.end method

.method public a(Landroid/view/View;)V
    .locals 3
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 469
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aP()V

    .line 471
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/a;->a(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 472
    new-instance v0, Lcom/instagram/creation/video/f/t;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/instagram/creation/video/f/t;-><init>(Lcom/instagram/creation/video/f/a;Lcom/instagram/creation/video/f/b;)V

    new-array v1, v2, [Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/f/t;->c([Ljava/lang/Object;)Lcom/instagram/d/a;

    .line 475
    :cond_0
    sget-boolean v0, Lcom/instagram/creation/video/j/a;->j:Z

    if-nez v0, :cond_1

    .line 476
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->al()V

    .line 479
    :cond_1
    sget v0, Lcom/facebook/aw;->clip_stack_view:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/ui/ClipStackView;

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->ah:Lcom/instagram/creation/video/ui/ClipStackView;

    .line 480
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ah:Lcom/instagram/creation/video/ui/ClipStackView;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v1}, Lcom/instagram/creation/video/a;->b()Lcom/instagram/creation/video/g/d;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/ui/ClipStackView;->setClipStack(Lcom/instagram/creation/video/g/d;)V

    .line 482
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->ah:Lcom/instagram/creation/video/ui/ClipStackView;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/a;->a(Lcom/instagram/creation/video/c;)V

    .line 483
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->am:Lcom/instagram/creation/video/ui/VideoShutterButton;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/a;->a(Lcom/instagram/creation/video/c;)V

    .line 485
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->au:Lcom/instagram/camera/c;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/camera/c;->a(Landroid/app/Activity;)V

    .line 487
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->aF:Ljava/util/List;

    .line 488
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aF:Ljava/util/List;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->am:Lcom/instagram/creation/video/ui/VideoShutterButton;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 490
    sget v0, Lcom/facebook/aw;->fragment_camcorder_gallery_button:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/ui/VideoHighlightButton;

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->an:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    .line 492
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->an:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    new-instance v1, Lcom/instagram/creation/video/f/p;

    invoke-direct {v1, p0}, Lcom/instagram/creation/video/f/p;-><init>(Lcom/instagram/creation/video/f/a;)V

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/ui/VideoHighlightButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 499
    sget v0, Lcom/facebook/aw;->action_bar_camera_controls_cancel_button:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/ui/VideoCancelButton;

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->ae:Lcom/instagram/creation/video/ui/VideoCancelButton;

    .line 501
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ae:Lcom/instagram/creation/video/ui/VideoCancelButton;

    new-instance v1, Lcom/instagram/creation/video/f/q;

    invoke-direct {v1, p0}, Lcom/instagram/creation/video/f/q;-><init>(Lcom/instagram/creation/video/f/a;)V

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/ui/VideoCancelButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 509
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aF:Ljava/util/List;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->ae:Lcom/instagram/creation/video/ui/VideoCancelButton;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 511
    sget v0, Lcom/facebook/aw;->button_accept:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/ui/VideoAcceptButton;

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->ag:Lcom/instagram/creation/video/ui/VideoAcceptButton;

    .line 512
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aF:Ljava/util/List;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->ag:Lcom/instagram/creation/video/ui/VideoAcceptButton;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 514
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ag:Lcom/instagram/creation/video/ui/VideoAcceptButton;

    new-instance v1, Lcom/instagram/creation/video/f/r;

    invoke-direct {v1, p0}, Lcom/instagram/creation/video/f/r;-><init>(Lcom/instagram/creation/video/f/a;)V

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/ui/VideoAcceptButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 526
    sget v0, Lcom/facebook/aw;->action_bar_camera_controls_switch_camera_button:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/ui/VideoHighlightButton;

    iput-object v0, p0, Lcom/instagram/creation/video/f/a;->af:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    .line 528
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->af:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    new-instance v1, Lcom/instagram/creation/video/f/s;

    invoke-direct {v1, p0}, Lcom/instagram/creation/video/f/s;-><init>(Lcom/instagram/creation/video/f/a;)V

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/ui/VideoHighlightButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 535
    sget v0, Lcom/facebook/aw;->minimum_clip_length_image:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 536
    invoke-virtual {v0}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    .line 537
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aR()I

    move-result v1

    invoke-virtual {v0, v1, v2, v2, v2}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    .line 539
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aF:Ljava/util/List;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->ai:Lcom/instagram/creation/video/ui/CamcorderBlinker;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 540
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->ai:Lcom/instagram/creation/video/ui/CamcorderBlinker;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/a;->a(Lcom/instagram/creation/video/c;)V

    .line 541
    return-void
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 441
    invoke-super {p0, p1, p2}, Lcom/instagram/e/b/b;->a(Landroid/view/View;Landroid/os/Bundle;)V

    .line 443
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/pendingmedia/model/f;

    new-instance v1, Lcom/instagram/creation/video/f/o;

    invoke-direct {v1, p0}, Lcom/instagram/creation/video/f/o;-><init>(Lcom/instagram/creation/video/f/a;)V

    invoke-interface {v0, v1}, Lcom/instagram/pendingmedia/model/f;->a(Ljava/lang/Runnable;)V

    .line 466
    return-void
.end method

.method public a(Lcom/instagram/creation/video/g/a;)V
    .locals 0
    .parameter

    .prologue
    .line 288
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aO()V

    .line 289
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aQ()V

    .line 290
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aP()V

    .line 291
    return-void
.end method

.method public a(Lcom/instagram/creation/video/g/a;Lcom/instagram/creation/video/g/c;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 311
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aP()V

    .line 312
    return-void
.end method

.method public a(Lcom/instagram/creation/video/mediarecorder/f;II)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 279
    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 11
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Ljava/io/File;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 603
    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    .line 606
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->az()I

    move-result v5

    .line 607
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/a;->l()I

    move-result v0

    .line 608
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v6

    move v1, v0

    :goto_0
    invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/io/File;

    .line 611
    :try_start_0
    invoke-static {v0}, Lcom/instagram/creation/video/c/a;->a(Ljava/io/File;)J
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-wide v2

    .line 615
    const-wide/16 v7, 0x0

    cmp-long v7, v2, v7

    if-lez v7, :cond_1

    int-to-long v7, v1

    cmp-long v7, v2, v7

    if-gtz v7, :cond_1

    .line 617
    int-to-long v7, v1

    sub-long/2addr v7, v2

    const-wide/16 v9, 0x12c

    cmp-long v7, v7, v9

    if-gtz v7, :cond_0

    int-to-long v2, v1

    .line 619
    :cond_0
    new-instance v7, Lcom/instagram/creation/video/g/a;

    invoke-virtual {v0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v7, v5, v2, v3, v0}, Lcom/instagram/creation/video/g/a;-><init>(IJLjava/lang/String;)V

    .line 620
    invoke-interface {v4, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 621
    int-to-long v0, v1

    sub-long/2addr v0, v2

    long-to-int v0, v0

    move v1, v0

    .line 625
    goto :goto_0

    .line 627
    :cond_1
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aQ:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/creation/video/f/c;

    invoke-direct {v1, p0, v4}, Lcom/instagram/creation/video/f/c;-><init>(Lcom/instagram/creation/video/f/a;Ljava/util/List;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 639
    return-void

    .line 612
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public a(Z)V
    .locals 1
    .parameter

    .prologue
    .line 1426
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->b:Lcom/instagram/creation/video/a/a;

    if-eqz v0, :cond_0

    .line 1427
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->b:Lcom/instagram/creation/video/a/a;

    invoke-virtual {v0, p1}, Lcom/instagram/creation/video/a/a;->a(Z)V

    .line 1429
    :cond_0
    return-void
.end method

.method public aa()Z
    .locals 3

    .prologue
    .line 813
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/a;->b()Lcom/instagram/creation/video/g/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/creation/video/g/d;->b()I

    move-result v0

    if-lez v0, :cond_0

    .line 814
    new-instance v0, Lcom/instagram/ui/a/a;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    .line 815
    sget v1, Lcom/facebook/ba;->discard_video:I

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->b(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->discard_video_close:I

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->yes:I

    new-instance v2, Lcom/instagram/creation/video/f/h;

    invoke-direct {v2, p0}, Lcom/instagram/creation/video/f/h;-><init>(Lcom/instagram/creation/video/f/a;)V

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->no:I

    new-instance v2, Lcom/instagram/creation/video/f/g;

    invoke-direct {v2, p0}, Lcom/instagram/creation/video/f/g;-><init>(Lcom/instagram/creation/video/f/a;)V

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 834
    const/4 v0, 0x1

    .line 837
    :goto_0
    return v0

    .line 836
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/creation/video/j/k;->g(Landroid/content/Context;)V

    .line 837
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public ab()V
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 895
    const-string v0, "CamcorderFragment"

    const-string v1, "startVideoRecording"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 897
    invoke-direct {p0, v2}, Lcom/instagram/creation/video/f/a;->g(Z)V

    .line 898
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->at()V

    .line 899
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    if-nez v0, :cond_0

    .line 900
    const-string v0, "CamcorderFragment"

    const-string v1, "Fail to initialize media recorder"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 922
    :goto_0
    return-void

    .line 904
    :cond_0
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->ax()V

    .line 905
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->ay()V

    .line 907
    :try_start_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->e:Lcom/instagram/creation/video/mediarecorder/f;

    invoke-interface {v0}, Lcom/instagram/creation/video/mediarecorder/f;->b()V

    .line 908
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/creation/video/f/a;->aq:Z
    :try_end_0
    .catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0

    .line 921
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->as()V

    goto :goto_0

    .line 909
    :catch_0
    move-exception v0

    .line 910
    const-string v1, "CamcorderFragment"

    const-string v2, "Could not filter media recorder. "

    invoke-static {v1, v2, v0}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 911
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aw()V

    .line 914
    :try_start_1
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->c:Landroid/hardware/Camera;

    invoke-virtual {v0}, Landroid/hardware/Camera;->reconnect()V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_0

    .line 915
    :catch_1
    move-exception v0

    .line 916
    const-string v1, "CamcorderFragment"

    const-string v2, "Could not reconnect camera."

    invoke-static {v1, v2, v0}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0
.end method

.method public ac()V
    .locals 1

    .prologue
    .line 1063
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/a;->j()V

    .line 1064
    return-void
.end method

.method public ad()V
    .locals 8

    .prologue
    .line 1068
    :try_start_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ay:Ljava/lang/String;

    invoke-static {v0}, Lcom/instagram/creation/video/c/a;->a(Ljava/lang/String;)J

    move-result-wide v0

    long-to-int v0, v0

    .line 1069
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v1}, Lcom/instagram/creation/video/a;->l()I

    move-result v1

    .line 1070
    iget-object v2, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v2}, Lcom/instagram/creation/video/a;->a()Lcom/instagram/creation/video/g/a;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/creation/video/g/a;->a()J

    move-result-wide v2

    .line 1075
    int-to-long v4, v1

    sub-int v6, v1, v0

    int-to-long v6, v6

    add-long/2addr v6, v2

    invoke-static {v4, v5, v6, v7}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v4

    const-wide/16 v6, 0x12c

    cmp-long v4, v4, v6

    if-gtz v4, :cond_0

    .line 1077
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/a;->a()Lcom/instagram/creation/video/g/a;

    move-result-object v0

    int-to-long v4, v1

    add-long v1, v4, v2

    invoke-virtual {v0, v1, v2}, Lcom/instagram/creation/video/g/a;->b(J)V

    .line 1086
    :goto_0
    return-void

    .line 1079
    :cond_0
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v1}, Lcom/instagram/creation/video/a;->a()Lcom/instagram/creation/video/g/a;

    move-result-object v1

    int-to-long v2, v0

    invoke-virtual {v1, v2, v3}, Lcom/instagram/creation/video/g/a;->b(J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 1081
    :catch_0
    move-exception v0

    .line 1082
    sget v0, Lcom/facebook/ba;->unknown_error_occured:I

    invoke-static {v0}, Lcom/instagram/n/j;->a(I)V

    .line 1083
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->ac()V

    goto :goto_0
.end method

.method public ae()Lcom/instagram/creation/video/a/e;
    .locals 1

    .prologue
    .line 1100
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aG:Lcom/instagram/creation/video/a/e;

    return-object v0
.end method

.method public af()V
    .locals 3

    .prologue
    const/4 v0, 0x1

    .line 1154
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->aw:Landroid/content/SharedPreferences;

    iget-object v2, p0, Lcom/instagram/creation/video/f/a;->aw:Landroid/content/SharedPreferences;

    invoke-static {v2}, Lcom/instagram/camera/g;->c(Landroid/content/SharedPreferences;)I

    move-result v2

    if-ne v2, v0, :cond_0

    const/4 v0, 0x0

    :cond_0
    invoke-static {v1, v0}, Lcom/instagram/camera/g;->a(Landroid/content/SharedPreferences;I)V

    .line 1156
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aC()V

    .line 1157
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aB()V

    .line 1158
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aJ()V

    .line 1159
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aD()V

    .line 1160
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aI()V

    .line 1161
    return-void
.end method

.method public ag()Lcom/instagram/creation/video/gl/r;
    .locals 1

    .prologue
    .line 1432
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ac:Lcom/instagram/creation/video/gl/GLRootView;

    return-object v0
.end method

.method public ah()V
    .locals 5

    .prologue
    .line 1541
    sget-object v0, Lcom/instagram/creation/video/ui/x;->d:Lcom/instagram/creation/video/ui/x;

    .line 1542
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->ap:Lcom/instagram/creation/video/ui/w;

    if-nez v1, :cond_0

    .line 1543
    new-instance v1, Lcom/instagram/creation/video/ui/w;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Lcom/instagram/creation/video/ui/w;-><init>(Landroid/content/Context;Lcom/instagram/creation/video/ui/x;)V

    iput-object v1, p0, Lcom/instagram/creation/video/f/a;->ap:Lcom/instagram/creation/video/ui/w;

    .line 1545
    :cond_0
    const/16 v1, 0x35

    .line 1546
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/app/j;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v2

    const/16 v3, 0xa

    invoke-static {v2, v3}, Lcom/instagram/n/k;->a(Landroid/util/DisplayMetrics;I)F

    move-result v2

    float-to-int v2, v2

    .line 1547
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v3

    invoke-virtual {v3}, Landroid/support/v4/app/j;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v3

    const/16 v4, 0x30

    invoke-static {v3, v4}, Lcom/instagram/n/k;->a(Landroid/util/DisplayMetrics;I)F

    move-result v3

    float-to-int v3, v3

    .line 1548
    invoke-direct {p0, v0, v1, v2, v3}, Lcom/instagram/creation/video/f/a;->a(Lcom/instagram/creation/video/ui/x;III)V

    .line 1549
    return-void
.end method

.method public ai()V
    .locals 4

    .prologue
    .line 1552
    sget-object v0, Lcom/instagram/creation/video/ui/x;->a:Lcom/instagram/creation/video/ui/x;

    .line 1553
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/app/j;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    const/16 v2, 0x50

    invoke-static {v1, v2}, Lcom/instagram/n/k;->a(Landroid/util/DisplayMetrics;I)F

    move-result v1

    float-to-int v1, v1

    .line 1555
    const/16 v2, 0x51

    const/4 v3, 0x0

    invoke-direct {p0, v0, v2, v3, v1}, Lcom/instagram/creation/video/f/a;->a(Lcom/instagram/creation/video/ui/x;III)V

    .line 1557
    invoke-static {}, Lcom/instagram/m/b/a;->a()Lcom/instagram/m/b/a;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/instagram/m/b/a;->h(Z)Z

    .line 1558
    return-void
.end method

.method public aj()V
    .locals 5

    .prologue
    .line 1561
    sget-object v0, Lcom/instagram/creation/video/ui/x;->b:Lcom/instagram/creation/video/ui/x;

    .line 1562
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/app/j;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    const/16 v2, 0xe

    invoke-static {v1, v2}, Lcom/instagram/n/k;->a(Landroid/util/DisplayMetrics;I)F

    move-result v1

    float-to-int v1, v1

    .line 1563
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->j()Landroid/support/v4/app/j;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/app/j;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v2

    const/16 v3, 0x5f

    invoke-static {v2, v3}, Lcom/instagram/n/k;->a(Landroid/util/DisplayMetrics;I)F

    move-result v2

    float-to-int v2, v2

    .line 1564
    const/16 v3, 0x53

    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aR()I

    move-result v4

    sub-int v1, v4, v1

    invoke-direct {p0, v0, v3, v1, v2}, Lcom/instagram/creation/video/f/a;->a(Lcom/instagram/creation/video/ui/x;III)V

    .line 1568
    return-void
.end method

.method public b(Lcom/instagram/creation/video/g/a;)V
    .locals 2
    .parameter

    .prologue
    .line 295
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aO()V

    .line 296
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aQ()V

    .line 297
    invoke-virtual {p1}, Lcom/instagram/creation/video/g/a;->b()Lcom/instagram/creation/video/g/c;

    move-result-object v0

    sget-object v1, Lcom/instagram/creation/video/g/c;->d:Lcom/instagram/creation/video/g/c;

    if-ne v0, v1, :cond_0

    .line 298
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->ai()V

    .line 300
    :cond_0
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aP()V

    .line 301
    return-void
.end method

.method public b(Lcom/instagram/creation/video/mediarecorder/f;II)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 284
    return-void
.end method

.method public c()V
    .locals 1

    .prologue
    .line 1411
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->ag()Lcom/instagram/creation/video/gl/r;

    move-result-object v0

    invoke-interface {v0}, Lcom/instagram/creation/video/gl/r;->a()V

    .line 1412
    return-void
.end method

.method public c(Lcom/instagram/creation/video/g/a;)V
    .locals 2
    .parameter

    .prologue
    .line 316
    invoke-virtual {p1}, Lcom/instagram/creation/video/g/a;->b()Lcom/instagram/creation/video/g/c;

    move-result-object v0

    sget-object v1, Lcom/instagram/creation/video/g/c;->a:Lcom/instagram/creation/video/g/c;

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/a;->n()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 317
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->h()V

    .line 319
    :cond_0
    return-void
.end method

.method public d()V
    .locals 0

    .prologue
    .line 1417
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 1906
    const-string v0, "camcorder"

    return-object v0
.end method

.method public e()V
    .locals 0

    .prologue
    .line 1422
    return-void
.end method

.method public e(Landroid/os/Bundle;)V
    .locals 1
    .parameter

    .prologue
    .line 545
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->e(Landroid/os/Bundle;)V

    .line 546
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v0, p1}, Lcom/instagram/creation/video/a;->a(Landroid/os/Bundle;)V

    .line 547
    return-void
.end method

.method public f()V
    .locals 5

    .prologue
    const/4 v3, 0x0

    .line 1032
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aw:Landroid/content/SharedPreferences;

    invoke-static {v0}, Lcom/instagram/camera/g;->e(Landroid/content/SharedPreferences;)I

    move-result v0

    rsub-int v0, v0, 0x320

    invoke-static {v3, v0}, Ljava/lang/Math;->max(II)I

    move-result v0

    .line 1034
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->getContext()Landroid/content/Context;

    move-result-object v1

    const-string v2, "CAMERA_SETTINGS"

    invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    invoke-static {v1}, Lcom/instagram/camera/g;->c(Landroid/content/SharedPreferences;)I

    move-result v1

    .line 1036
    iget-object v2, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v2, v0, v1}, Lcom/instagram/creation/video/a;->a(II)Lcom/instagram/creation/video/g/a;

    .line 1037
    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->aQ:Landroid/os/Handler;

    const/4 v2, 0x1

    int-to-long v3, v0

    invoke-virtual {v1, v2, v3, v4}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    .line 1038
    sget-object v0, Lcom/instagram/creation/video/a/e;->a:Lcom/instagram/creation/video/a/e;

    invoke-direct {p0, v0}, Lcom/instagram/creation/video/f/a;->a(Lcom/instagram/creation/video/a/e;)V

    .line 1040
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aG:Lcom/instagram/creation/video/a/e;

    sget-object v1, Lcom/instagram/creation/video/a/e;->b:Lcom/instagram/creation/video/a/e;

    if-ne v0, v1, :cond_0

    .line 1048
    :goto_0
    return-void

    .line 1044
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->ab()V

    .line 1046
    const-string v0, "CamcorderFragment"

    const-string v1, "markStartOfRecording"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 1047
    sget-object v0, Lcom/instagram/creation/video/a/e;->b:Lcom/instagram/creation/video/a/e;

    invoke-direct {p0, v0}, Lcom/instagram/creation/video/f/a;->a(Lcom/instagram/creation/video/a/e;)V

    goto :goto_0
.end method

.method public g_()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x0

    .line 849
    invoke-super {p0}, Lcom/instagram/e/b/b;->g_()V

    .line 851
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->ac:Lcom/instagram/creation/video/gl/GLRootView;

    .line 854
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->aD:Lcom/instagram/creation/video/f/w;

    .line 855
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->aC:Lcom/instagram/creation/video/ui/PreviewSurfaceView;

    .line 857
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->aF:Ljava/util/List;

    .line 858
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->ah:Lcom/instagram/creation/video/ui/ClipStackView;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/a;->b(Lcom/instagram/creation/video/c;)V

    .line 859
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->am:Lcom/instagram/creation/video/ui/VideoShutterButton;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/a;->b(Lcom/instagram/creation/video/c;)V

    .line 860
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    iget-object v1, p0, Lcom/instagram/creation/video/f/a;->ai:Lcom/instagram/creation/video/ui/CamcorderBlinker;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/a;->b(Lcom/instagram/creation/video/c;)V

    .line 862
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ah:Lcom/instagram/creation/video/ui/ClipStackView;

    if-eqz v0, :cond_0

    .line 863
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ah:Lcom/instagram/creation/video/ui/ClipStackView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/ClipStackView;->b()V

    .line 866
    :cond_0
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->aj:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    .line 867
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->ak:Landroid/widget/Button;

    .line 868
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->al:Landroid/widget/ViewSwitcher;

    .line 869
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->ah:Lcom/instagram/creation/video/ui/ClipStackView;

    .line 870
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->am:Lcom/instagram/creation/video/ui/VideoShutterButton;

    .line 871
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->ag:Lcom/instagram/creation/video/ui/VideoAcceptButton;

    .line 872
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->ae:Lcom/instagram/creation/video/ui/VideoCancelButton;

    .line 873
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->af:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    if-eqz v0, :cond_1

    .line 874
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->af:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/VideoHighlightButton;->clearAnimation()V

    .line 876
    :cond_1
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->af:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    .line 877
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ao:Lcom/instagram/ui/a/d;

    if-eqz v0, :cond_2

    .line 878
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ao:Lcom/instagram/ui/a/d;

    invoke-virtual {v0}, Lcom/instagram/ui/a/d;->dismiss()V

    .line 879
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->ao:Lcom/instagram/ui/a/d;

    .line 881
    :cond_2
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->aa:Lcom/instagram/creation/video/ui/CamcorderPreviewLayout;

    .line 882
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->b:Lcom/instagram/creation/video/a/a;

    .line 883
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->aL:Lcom/instagram/camera/ui/RotateLayout;

    .line 884
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->ad:Landroid/view/View;

    .line 885
    iput-boolean v3, p0, Lcom/instagram/creation/video/f/a;->aI:Z

    .line 886
    iput-boolean v3, p0, Lcom/instagram/creation/video/f/a;->aH:Z

    .line 887
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->d:Landroid/hardware/Camera$Parameters;

    .line 888
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->ap:Lcom/instagram/creation/video/ui/w;

    .line 889
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->ai:Lcom/instagram/creation/video/ui/CamcorderBlinker;

    .line 890
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->ab:Lcom/instagram/creation/video/ui/i;

    .line 891
    iput-object v2, p0, Lcom/instagram/creation/video/f/a;->an:Lcom/instagram/creation/video/ui/VideoHighlightButton;

    .line 892
    return-void
.end method

.method public h()V
    .locals 4

    .prologue
    .line 1051
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aQ:Landroid/os/Handler;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 1052
    sget-object v0, Lcom/instagram/creation/video/a/e;->c:Lcom/instagram/creation/video/a/e;

    invoke-direct {p0, v0}, Lcom/instagram/creation/video/f/a;->a(Lcom/instagram/creation/video/a/e;)V

    .line 1053
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/a;->f()V

    .line 1054
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aQ:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/creation/video/f/i;

    invoke-direct {v1, p0}, Lcom/instagram/creation/video/f/i;-><init>(Lcom/instagram/creation/video/f/a;)V

    const-wide/16 v2, 0x12c

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 1060
    return-void
.end method

.method public w()V
    .locals 1

    .prologue
    .line 731
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->Y()V

    .line 732
    invoke-super {p0}, Lcom/instagram/e/b/b;->w()V

    .line 733
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->Z()V

    .line 734
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->ai:Lcom/instagram/creation/video/ui/CamcorderBlinker;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/CamcorderBlinker;->b()V

    .line 735
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->aQ()V

    .line 736
    return-void
.end method

.method public x()V
    .locals 2

    .prologue
    .line 681
    const-string v0, "CamcorderFragment"

    const-string v1, "onPause"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 682
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/a;->X()V

    .line 683
    invoke-super {p0}, Lcom/instagram/e/b/b;->x()V

    .line 684
    invoke-direct {p0}, Lcom/instagram/creation/video/f/a;->ap()V

    .line 685
    return-void
.end method

.method public y()V
    .locals 1

    .prologue
    .line 843
    invoke-super {p0}, Lcom/instagram/e/b/b;->y()V

    .line 844
    iget-object v0, p0, Lcom/instagram/creation/video/f/a;->aE:Lcom/instagram/creation/video/a;

    invoke-virtual {v0, p0}, Lcom/instagram/creation/video/a;->b(Lcom/instagram/creation/video/c;)V

    .line 845
    return-void
.end method
